#ifndef _VOLUME_CONTROL_H_
#define _VOLUME_CONTROL_H_

#include <windows.h>
#include <commctrl.h>
#include <mmdeviceapi.h>
#include <endpointvolume.h>

class VolumeController
{
public:
	VolumeController();
	~VolumeController();

	bool Init();
	float GetVolume();
	void SetVolume(float level);
private:
	GUID mContext;
	IAudioEndpointVolume* mVolume;
	IMMDeviceEnumerator* mEnumerator;
	IMMDevice* mDevice;
};
#endif